import { query } from '~/apis/types/query'
import System from '~/utils/System'

export default class ApiLogSystem {
    static list(query: TApiLogSystemQuery) {
        return System.http.get(
            {
                url: 'log/system/list',
                method: 'post'
            },
            { ...query }
        )
    }

    static save(param: any) {
        return System.http.get(
            {
                url: 'log/system/save',
                method: 'post'
            },
            param
        )
    }

    static removeAll(type: string, content: string) {
        return System.http.get(
            {
                url: 'log/system/removeAll',
                method: 'post'
            },
            { type, content }
        )
    }
}

type TApiLogSystemQuery = {
    title?: String
    type?: String
    content?: String
    code?: String
    ip?: String
} & query
